package com.yx.shop.entitly;


import java.sql.Timestamp;
import java.util.List;

public class Orders {

  private String oid;
  private int uid;
  private int aid;
  private double ocount;
  private java.sql.Timestamp otime;
  private int ostate;

  private User user;

  public User getUser() {
    return user;
  }

  public void setUser(User user) {
    this.user = user;
  }

  //订单涉及地址信息
  private Address address;

  private List<Item> itemList;

  public List<Item> getItemList() {
    return itemList;
  }

  public void setItemList(List<Item> itemList) {
    this.itemList = itemList;
  }

  public Address getAddress() {
    return address;
  }

  public void setAddress(Address address) {
    this.address = address;
  }

  public Orders(int uid, int aid, double ocount, Timestamp otime, int ostate) {
    this.uid = uid;
    this.aid = aid;
    this.ocount = ocount;
    this.otime = otime;
    this.ostate = ostate;
  }

  public Orders(String oid, int uid, int aid, double ocount, Timestamp otime, int ostate) {
    this.oid = oid;
    this.uid = uid;
    this.aid = aid;
    this.ocount = ocount;
    this.otime = otime;
    this.ostate = ostate;
  }

  public Orders() {
  }

  public String getOid() {
    return oid;
  }

  public void setOid(String oid) {
    this.oid = oid;
  }


  public int getUid() {
    return uid;
  }

  public void setUid(int uid) {
    this.uid = uid;
  }


  public int getAid() {
    return aid;
  }

  public void setAid(int aid) {
    this.aid = aid;
  }


  public double getOcount() {
    return ocount;
  }

  public void setOcount(double ocount) {
    this.ocount = ocount;
  }


  public java.sql.Timestamp getOtime() {
    return otime;
  }

  public void setOtime(java.sql.Timestamp otime) {
    this.otime = otime;
  }


  public int getOstate() {
    return ostate;
  }

  public void setOstate(int ostate) {
    this.ostate = ostate;
  }

}
